package com.akaovi.five;

/**
 * @author akaovi
 * @version 1.0
 * @description
 * @date 2022/11/7 14:50
 * @since 2022/11/7 14:50
 */
public class Outer {

    private String name;

    public Outer() {
    }

    public Outer(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Person method() {
        return new Person(this.name);
    }

    class Person implements Inner {

        private String name;

        public Person() {
        }

        public Person(String name) {
            this.name = name;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        @Override
        public void show() {
            System.out.printf("恭喜%s取得优异成绩\n", this.name);
        }
    }

}
